package com.pulyka.rtpvp.engine.client.web.ui.client.gameview;

import com.google.gwt.canvas.dom.client.Context2d;

public abstract class ViewEntity {

	protected int worldWidth;
	protected int worldHeight;
	protected Vector2d position;
	
	public ViewEntity(int worldWidth, int worldHeight, Vector2d position) {
		super();
		this.worldWidth = worldWidth;
		this.worldHeight = worldHeight;
		this.position = position;
	}

	public int getWorldWidth() {
		return worldWidth;
	}

	public void setWorldWidth(int worldWidth) {
		this.worldWidth = worldWidth;
	}

	public int getWorldHeight() {
		return worldHeight;
	}

	public void setWorldHeight(int worldHeight) {
		this.worldHeight = worldHeight;
	}

	public Vector2d getPosition() {
		return position;
	}

	public void setPosition(Vector2d position) {
		this.position = position;
	}

	public abstract void draw(Context2d context);
	
	public abstract boolean isInWorld();
	
}
